<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<title>C2earn Admin</title>
		<link rel="stylesheet" href="../Public/css/960.css" type="text/css" media="screen" charset="utf-8" />
		<link rel="stylesheet" href="../Public/css/template.css" type="text/css" media="screen" charset="utf-8" />
		<link rel="stylesheet" href="../Public/css/colour.css" type="text/css" media="screen" charset="utf-8" />
		<!--[if IE]><![if gte IE 6]><![endif]-->
		<script type="text/javascript" src="../Public/js/glow/1.7.0/core/core.js"></script>
		<script type="text/javascript" src="../Public/js/glow/1.7.0/widgets/widgets.js"></script>
		<link href="../Public/js/glow/1.7.0/widgets/widgets.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript">
			glow.ready(function(){
				new glow.widgets.Sortable(
					'#content .grid_5, #content .grid_6',
					{
						draggableOptions : {
							handle : 'h2'
						}
					}
				);
			});
		</script>
		<!--[if IE]><![endif]><![endif]-->
	</head>
	<body>
	
	
		<h1 id="head">C2earn Admin</h1>
		
		<ul id="navigation">
			<li><?php if($nav == 'index'): ?><span class="active"><?php endif; ?><a href="__APP__/index">Overview</a><?php if($nav == 'index'): ?></span><?php endif; ?></li>
			<li><?php if($nav == 'video'): ?><span class="active"><?php endif; ?><a href="__APP__/video">Ad Videos</a><?php if($nav == 'video'): ?></span><?php endif; ?></li>
			<li><?php if($nav == 'coupon'): ?><span class="active"><?php endif; ?><a href="__APP__/coupon">Coupons</a><?php if($nav == 'coupon'): ?></span><?php endif; ?></li>
			<li><?php if($nav == 'order'): ?><span class="active"><?php endif; ?><a href="__APP__/order">Orders</a><?php if($nav == 'order'): ?></span><?php endif; ?></li>
			<li style="float:right;"><a href="__APP__/login/logout">Logout</a></li>
		</ul>


			<div id="content" class="container_16 clearfix">
				<div class="grid_5">
					<div class="box">
						<h2>Mathew</h2>
						<!--
						<div class="utils">
							<a href="#">View More</a>
						</div>
						-->
						<p><strong>Last Signed In : </strong> <?php echo ($last_login_time); ?><br /><strong>IP Address : </strong> <?php echo ($last_login_ip); ?></p>
					</div>
					<div class="box">
						<h2>Orders</h2>
						<div class="utils">
							<a href="__APP__/order">View More</a>
						</div>
						<table>
							<tbody>
								<tr>
									<td>Total Orders</td>
									<td><a href="__APP__/order"><?php echo ($total_orders); ?></a></td>
								</tr>
								<tr>
									<td>Confirmed</td>
									<td><a href="__APP__/order/index/status/2"><?php echo ($confirmed_orders); ?></a></td>
								</tr>
								<tr>
									<td>Unconfirmed</td>
									<td><a href="__APP__/order/index/status/1"><?php echo ($unconfirmed_orders); ?></a></td>
								</tr>
								<tr>
									<td>Canceled</td>
									<td><a href="__APP__/order/index/status/3"><?php echo ($canceled_orders); ?></a></td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="box">
						<h2>Messages</h2>
						<div class="utils">
							<a href="#">Inbox</a>
						</div>
						<p class="center">Have have <a href="#">10</a> unread messages.</p>
					</div>
				</div>
				<div class="grid_6">
					<div class="box">
						<h2>At a Glance</h2>
						<div class="utils">
							<a href="#">View More</a>
						</div>
						<table>
							<tbody>
								<tr>
									<td>1 Post</td>
									<td>2 Comments</td>
								</tr>
								<tr>
									<td>1 Page</td>
									<td>2 Approved</td>
								</tr>
								<tr>
									<td>1 Categories</td>
									<td>0 Pending</td>
								</tr>
								<tr>
									<td>0 Tags</td>
									<td>0 Spam</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="box">
						<h2>Quick Post</h2>
						<div class="utils">
							<a href="#">Advanced</a>
						</div>
						<form action="#" method="post">
							<p>
								<label for="title">Title <small>Alpha-numeric characters only.</small> </label>
								<input type="text" name="title" />
							</p>
							<p>
								<label for="post">Post <small>Parsed by Markdown.</small> </label>
								<textarea name="post"></textarea>
							</p>
							<p>
								<input type="submit" value="post" />
							</p>
						</form>
					</div>
				</div>
				<div class="grid_5">
					<div class="box">
						<h2>Statistics</h2>
						<div class="utils">
							<a href="#">View More</a>
						</div>
						<table>
							<tbody>
								<tr>
									<td>News</td>
									<td>+ 120%</td>
								</tr>
								<tr>
									<td>Downloads</td>
									<td>+ 220%</td>
								</tr>
								<tr>
									<td>Users</td>
									<td>- 10%</td>
								</tr>
							</tbody>
						</table>
					</div>

				</div>
			</div>

		<div id="foot">
			<div class="container_16 clearfix">
				<div class="grid_16">
					<a href="#">Contact Me</a>
				</div>
			</div>
		</div>
	</body>
</html>